﻿body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
}

.login-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 100vh;
    min-width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #1a2a6c);
    background-size: cover;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: scroll;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(100, 181, 246, 0.5) transparent;
}

.login-container {
    display: flex;
    width: 100%;
    max-width: 900px;
    min-height: 500px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.carousel-container {
    flex: 1;
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border-radius: 20px 0 0 10px;
}

.carousel-slide {
    display: flex;
    height: 100%;
    transition: transform 1.5s ease-in-out;
    position: relative;
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

    .slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.carousel-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    z-index: 10;
}


.carousel-btn {
    outline: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 30px;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    font-size: 1.2rem;
}

    .carousel-btn:hover {
        background: rgba(255, 255, 255, 0.4);
        transform: translateY(-50%) scale(1.1);
    }

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

    .carousel-dots span {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.5);
        cursor: pointer;
        transition: all 0.3s;
    }

        .carousel-dots span.active {
            background: white;
            transform: scale(1.2);
        }

.form-container {
    flex: 1;
    padding: 40px;
    min-width: 380px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

    .login-header h1 {
        color: white;
        font-size: 1.8rem;
        margin-bottom: 5px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
    }

    .login-header h2 {
        color: #a0a0ff;
        font-size: 1.5rem;
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
    }

    .login-header p {
        color: #bbdefb;
        font-size: 1rem;
    }

.input-wrapper {
    position: relative;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

    .form-group label {
        color: #bbdefb;
        margin-bottom: 8px;
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 1rem;
    }

    .form-group input {
        width: 100%;
        padding: 14px 45px 14px 14px;
        background: rgba(20, 30, 60, 0.7);
        border: 1px solid rgba(100, 181, 246, 0.3);
        border-radius: 8px;
        color: white;
        font-size: 1rem;
        transition: all 0.3s;
        box-sizing: border-box;
    }

        .form-group input:focus {
            border-color: #4dccbd;
            box-shadow: 0 0 0 2px rgba(77, 204, 189, 0.3);
            outline: none;
        }

    .form-group.error input {
        border-color: #ff6b6b;
    }

.error-message {
    color: #ff6b6b;
    font-size: 0.8rem;
    margin-top: 8px;
}

.password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 0rem;
    display: hidden;
    transition: all 0.2s;
    opacity: 0;
    color: #bbdefb;
    cursor: pointer;
}

    .toggle-password:hover {
        opacity: 0.8;
        transform: translateY(-50%) scale(1.1);
    }

    .toggle-password.active {
        color: white;
    }

.login-container p {
    margin-top: 20px;
    color: #bbdefb;
    text-align: center;
}

.login-container router-link {
    color: #4dccbd;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

    .login-container router-link:hover {
        text-decoration: underline;
    }

.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

    .login-btn:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(0, 114, 255, 0.6);
    }

    .login-btn:disabled {
        background: #6c757d;
        cursor: not-allowed;
    }

.register-link {
    margin-top: 20px;
    color: #bbdefb;
    text-align: center;
}

    .register-link a {
        color: #4dccbd;
        text-decoration: none;
        font-weight: 500;
    }

        .register-link a:hover {
            text-decoration: underline;
        }

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        min-width: 90vw;
        max-width: 95vw;
    }

    .carousel-container {
        height: 200px;
    }

    .form-container {
        min-width: auto;
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 25px 15px;
    }

    .form-group input {
        padding: 12px 40px 12px 12px;
    }
}
